﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true"
    CodeBehind="Notice.aspx.cs" Inherits="Runda.CMS.Portal.Workspace.Notice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">

    <script src="../Content/global.js" type="text/javascript"></script>

    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />

    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>
    <script language="javascript" src="MouseEventOfLink.js"></script>
		<script language="javascript" src="../Content/Navigate/map.js"></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function OpenNotice(value) {
            openMyFullWin('Notice_View.aspx?NoticeID=' + value, 'viewNotice');
        }
       
    </script>
    
     <script   language="JavaScript">
         function myrefresh() {
             window.location.reload();
         }
         setTimeout('myrefresh()', 60000); //指定1分钟刷新一次
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    <div class="Container" >
        <asp:Repeater ID="RepeaterNotice" runat="server" OnItemCommand="RepeaterNotice_ItemCommand">
            <HeaderTemplate>
                <table id="grid" class="grid" cellspacing="0" cellpadding="0">
                    <tbody>
                        
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="data" style="height:20px" ondblclick="OpenNotice('<%#Eval("NoticeID") %>')" onclick="handleClick()">
                    <td class="tdautolen" style="width:89%">
                        <asp:Label runat="server" ID="lblcomment" ToolTip='<%#Eval("NoticeContent")%>' Text = '<%#Eval("NoticeContent")%>'></asp:Label> 
                    </td>
                    <td style="width:6%">
                        <%# string.Format("{0:d}", Eval("NoticeTime"))%>
                    </td>
                    <td style="width:5%">
                        <%# Eval("UserName")%>
                    </td>
                    
                    
                   
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr height="20">
				    <td align="right" colspan="3"><a id="aLink" runat="server" href="#" onclick="GoFromMyDesktop('../Workspace/NoticeMore.aspx')">更多公告...</a>&nbsp;</td>
			    </tr>
                </tbody> </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    
</asp:Content>
